<div ng-controller="OrganizeCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/order/list">{{'公司管理'| translate}}</a></li>
        <li class="active">
            {{"信息"|translate}}
        </li>
    </ul>
    <div class="sui-form form-horizontal">
        <form name="partnerForm" novalidate ng-submit="partnerUpdate()">
            <div class="control-group">
                <label class="control-label v-top">{{'公司LOGO'|translate}}：</label>
                <div class="controls">
                    <img ng-src="{{partner.logo}}" class="item-image">
                    <br>
                    <attachment owner-id="1" owner-type="partner" dhf-ng-model="partner.logo" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'公司名称'|translate}}:</label>
                <div class="controls">
                    <input ng-model="partner.name" type="text" name="name" class="input-xlarge">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'联系地址'|translate}}:</label>
                <div class="controls">
                    <input ng-model="partner.address" type="text" name="address" class="input-xlarge">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'mobile'|translate}}:</label>
                <div class="controls">
                    <input ng-model="partner.tel" type="text" name="tel" class="input-xlarge">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'desc'|translate}}:</label>
                <div class="controls">
                    <input ng-model="partner.desc" type="text" name="desc" class="input-xlarge">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"></label>
                <div class="controls">
                    <button type="submit" class="sui-btn btn-primary">
                        {{'save' | translate}}
                    </button>
                </div>
            </div>
        </form>
        <hr />
        <div class="control-group">
            <label class="control-label v-top">{{'绑定企业微信'|translate}}:</label>
            <div class="controls">
                <div ng-show="qywx">
                    <img ng-src="{{qywx.logo_url}}" style="width: 120px;" /><br />
                    {{qywx.name}}({{qywx.corpid}})
                </div>
                <div ng-show="!qywx">
                    <button ng-show="!bindqywxQrImage" ng-click="bindqywx()" class="sui-btn btn-primary">绑定</button>
                    <div ng-show="bindqywxQrImage">
                        <img ng-src="{{bindqywxQrImage}}" width="250" style="border: 2px solid;" />
                        <p>请使用微信或者企业微信扫描</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 分页end -->
</div>